package com.grouplay.service;

import com.grouplay.entity.TransferRecord;
import com.grouplay.entity.User;

import java.util.List;

public interface IUserService {

    boolean insert(User user);

    User login(String email, String password);

    boolean setNewPassword(String email, String password);

    boolean serNewName(User user);

    Double findBalanceById(Integer id);

    boolean transferMoney(String targetName, Integer sourceId, Double money);

    boolean pay(Integer groupId, Integer uid);

    List<TransferRecord> findMyTransferRecordsByUid(Integer uid);
}
